package com.jinmdz.fmis.api.admin.model.servicebusiness;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 业务关联保存请求数据
 *
 * @author GuanKui
 * @date 2020/3/16 14:21
 */
@ApiModel(value = "业务关联保存请求数据", description = "业务关联保存请求数据")
public class ServiceBusinessDataSaveData extends BaseBean {

    /**
     * 业务类型
     */
    @AnValidate(name = "业务类型", required = true)
    @ApiModelProperty(value = "业务类型", name = "businessType", position = 1)
    private String businessType;

    /**
     * 服务项目外键
     */
    @AnValidate(name = "服务项目外键", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "服务项目外键", name = "serviceItemId", position = 2)
    private Integer serviceItemId;

    public String getBusinessType() {
        return businessType;
    }

    public ServiceBusinessDataSaveData setBusinessType(String businessType) {
        this.businessType = businessType;
        return this;
    }

    public Integer getServiceItemId() {
        return serviceItemId;
    }

    public ServiceBusinessDataSaveData setServiceItemId(Integer serviceItemId) {
        this.serviceItemId = serviceItemId;
        return this;
    }
}
